'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')

module.exports = merge(prodEnv, {
  NODE_ENV: '"development"',
  devServer: {
    open: true, //是否自动弹出浏览器页面
    port: '8888',
    https: false,
    hotOnly: false,
    proxy: {
      '/v1': {
        target: 'http://localhost:8080', //API服务器的地址
        ws: true,  //代理websockets
        changeOrigin: true, // 虚拟的站点需要更管origin
        pathRewrite: {   //重写路径 比如'/api/aaa/ccc'重写为'/aaa/ccc'
          '^/v1': ''
        }
      }
    },
  }
})
